import { request } from 'ngfe-request'
// 目前我这里的接口用是mock数据

// 查询和平币投放配置列表
export async function getPdbIssuanceList(params: any) {
  return request('/query', {
    method: 'POST',
    mode: 'cors',
    data: {
      sysHead: {
        stdSvcInd: 'PeacefulCoinCFGSVC',
        stdIntfcInd: 'query',
        stdIntfcVerNo: '1.0.0',
        srcConsmSysInd: 'DAM',
      },
      body: {
        ...params,
      },
    },
  })
}
// 新增和平币投放配置
export async function addPdbIssuanceList(params: any) {
  return request('/add', {
    method: 'POST',
    mode: 'cors',
    data: {
      sysHead: {
        stdSvcInd: 'PeacefulCoinCFGSVC',
        stdIntfcInd: 'add',
        stdIntfcVerNo: '1.0.0',
        srcConsmSysInd: 'DAM',
      },
      body: {
        ...params,
      },
    },
  })
}

// 修改和平币投放配置
export async function updatePdbIssuanceList(params: any) {
  return request('/update', {
    method: 'POST',
    mode: 'cors',
    data: {
      sysHead: {
        stdSvcInd: 'PeacefulCoinCFGSVC',
        stdIntfcInd: 'update',
        stdIntfcVerNo: '1.0.0',
        srcConsmSysInd: 'DAM',
      },
      body: {
        ...params,
      },
    },
  })
}